import { get, post } from "../base/request";

// 登录
export const postLogin = (data) => post("/api/index/login", data);

// 退出登录
export const postLogout = (data) => post("/api/user/logout", data);

// 获取用户信息
export const getUserInfo = () => get("/api/user/index");

// 申请称为顾问
export const postAdviserAdd = (data) => post("/api/counselor/apply", data);

// 顾问信息详情
export const getAdviserDetail = () => get("/api/counselor/detail");

// 申请企业认证
export const postEnterpriseAuthAdd = (data) =>
  post("/api/user/company_apply", data);

// 企业认证详情
export const getEnterpriseAuthDetail = () => get("/api/user/company_detail");

// 帮助 - 列表
export const getHelpList = () => get("/api/helpcenter/lists");

// 帮助 - 提交反馈
export const postHelpAdd = (data) => post("/api/helpcenter/feedback", data);

// 推荐好友 - 推荐信息
export const getInviteInfo = () => get("/api/user/invite_info");
